package com.zhj.psi.core.mvc;

/**
 * Created by zhuhuijun on 2017/7/20 13:13
 */
public class AjaxResult {

    private String code;
    private Object data;
    private String errorMsg;

    public AjaxResult() {
    }

    public String getCode() {
        return code;
    }


    public AjaxResult(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public AjaxResult setCode(String code) {
        this.code = code;
        return this;
    }

    public Object getData() {
        return data;
    }

    public AjaxResult setData(Object data) {
        this.data = data;
        return this;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public AjaxResult setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
        return this;
    }

    public AjaxResult with(Object data) {
        this.data = data;
        return this;
    }

}
